package com.bienvenue.main.adapter;

import com.bienvenue.main.R;
import com.bienvenue.main.model.CollectionsBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

/**
 * @ProjectName: Bienvenue
 * @Package: com.bienvenue.main.adapter
 * @ClassName: CollectionsAdapter
 * @Description: java类作用描述
 * @Author: Mr.Chen
 * @CreateDate: 2020/9/15 9:58
 * @UpdateUser: Mr.Chen
 * @UpdateDate: 2020/9/15 9:58
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */


public class CollectionsAdapter extends BaseQuickAdapter<CollectionsBean,BaseViewHolder> {
    public CollectionsAdapter() {
        super(R.layout.item_collections);
    }

    @Override
    protected void convert(BaseViewHolder helper, CollectionsBean item) {
        helper.setText(R.id.tv_position_type,item.getPositionType())
                .setText(R.id.tv_position_money,item.getPositionMoney())
                .setText(R.id.tv_prompt_name,item.getPromptName())
                .setText(R.id.tv_education,item.getEducation())
                .setText(R.id.tv_address,item.getAddress())
                .addOnClickListener(R.id.cl_item_click);

    }
}
